package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"hospital-sys/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/doctor/upload", &controllers.DoctorControllers{}, "post:Upload")
	beego.Router("/doctor/add", &controllers.DoctorControllers{}, "post:Add")
	beego.Router("/doctor/list", &controllers.DoctorControllers{}, "get:List")
	beego.Router("/doctor/del", &controllers.DoctorControllers{}, "get:Del")
	beego.Router("/doctor/show", &controllers.DoctorControllers{}, "post:Show")
}
